package com.zjj.spring.read.xml.aop;
/**
 * 为避免混淆，复制一份常规实现类GreetingImpl
 * 作为spring+aspect增强类的实现及测试
 * @author zhuangjiajie778
 */
public class GreetingAspectImpl implements Greeting{

	@Override
	public String hello(String name) {
		System.out.println(" --- GreetingAspectImpl hello : " + name + " ---");
		return "return GreetingAspectImpl#hello";
	}

	@Override
	public String except(String info) {
		System.out.println(" --- GreetingAspectImpl except : " + info + " ---");
		throw new RuntimeException("GreetingAspectImpl#error!!!");
	}
	
	@Override
	public String goodMorning(String name) {
		System.out.println(" --- GreetingAspectImpl goodMorning : " + name + " ---");
		return "return GreetingAspectImpl#goodMorning";
	}
	@Override
	public String goodNight(String name) {
		System.out.println(" --- GreetingAspectImpl goodNight : " + name + " ---");
		return "return GreetingAspectImpl#goodNight";
	}
}
